package com.biovr.backend.service;

import org.springframework.stereotype.Service;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Service
public class ExpmReportServiceImpl implements  ExpmReportService {
    @Override
    public void parseImageAndUpload(String content) {
        Pattern pattern = Pattern.compile("/^(data:\\s*image\\/(\\w+);base64,)/");
        Matcher matcher = pattern.matcher(content);
        while(matcher.find())
        {
            System.out.println(matcher.group());
        }
    }
}
